<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Galéria</title>
        <link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url(); ?>admin_style/css/layout.css" />
        <link rel="stylesheet" href="<?php echo base_url() ?>admin_style/elfinder/elfinder.css" type="text/css" media="screen" title="no title" />
        <link type="text/css" href="<?php echo base_url(); ?>admin_style/css/demo_table_jui.css" rel="stylesheet"/>
        <script src="<?php echo base_url(); ?>admin_style/js/jquery.min.js" type="text/javascript" ></script>
        <script src="<?php echo base_url(); ?>admin_style/js/jquery-ui.min.js" type="text/javascript"></script>
        <script src="<?php echo base_url() ?>admin_style/elfinder/elfinder.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo base_url() ?>admin_style/elfinder/elfinder.hu.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        <div id="finder"> </div>

        <?php
        if (!isset($elfinder_dir))
            $elfinder_dir = "";
        ?> 
        
        <script type="text/javascript" charset="utf-8"> 
            var f = $('#finder').elfinder({
                url : '<?php echo site_url("admin/gallery/connect/$elfinder_dir") ?>',
                lang : 'hu',
                //docked : true,
                places : '',
                editorCallback : function(url) {
                    window.tinymceFileWin.document.forms[0].elements[window.tinymceFileField].value = url;
                    window.tinymceFileWin.focus();
                    window.close();
                }
            });
        </script>

    </body>
</html>